<%@ include file="../includes/taglibs.jsp"%>

<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<div class="vacancy-list">

	<ul class="vacancy-list-compact">
		<c:forEach var="item" items="${items}">
			<li><a href="#${item.title}">${item.title}</a></li>
		</c:forEach>
	</ul>

	<div class="vacancy-list-open">
		<c:forEach var="vacancy" items="${items}">
			<div class="vacancy">
				<div class="vacancy-headInfo">
					<a id="${vacancy.title}" ></a> <a class="head-link content-paddings"
						href="<c:url value="${vacancy.URL}" />"><span>${vacancy.title}</span></a>
				</div>

				<div class="vacancy-content content-paddings">
					${vacancy.description}

					<c:if test="${vacancy.hasResponsibility}">
						<p>
							<strong>Обязанности:</strong>
						</p>
						${vacancy.responsibility}
					</c:if>
					<c:if test="${vacancy.hasRequirements}">
						<p>
							<strong>Требования:</strong>
						</p>
						${vacancy.requirements}
					</c:if>
					<c:if test="${vacancy.hasTerms}">
						<p>
							<strong>Условия:</strong>
						</p>
						${vacancy.terms}
					</c:if>
				</div>
			</div>

		</c:forEach>
	</div>

</div>
